package com.haopt.annotation.importlearn;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @author haopt
 * @version 1.0
 * @ClassName MyImportSelector
 * @Description 当该类被@Import引入时候，根据selectImports方法返回值创建对象
 * @date 2021/5/12 14:42
 */
public class MyImportSelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        return new String[]{"com.haopt.annotation.importlearn.Import"};
    }
}
